<template>
	<view class="content" :style="{'background':kbackgroundColor}" style="min-height: 100vh">
		<!-- <view class="content" :style="{'background':kbackgroundColor}" style="min-height: 100vh"> -->
		<hx-navbar :title="nums_name" :back="true" :rightIcon="(isSale==1 && selectTabIndex == 0) ?'more-filled':''" :fixed="false"
			:color="knavTitleColor" barPlaceholder="hidden" transparent="auto" @clickright="clickright"></hx-navbar>
		<!-- 版权分类 -->
		<view class="tab_box" :style="{'background': kbackgroundColor2,'top': navBarHeight+'px'}">
			<template v-for="(item, index) in typeList">
				<view class="tab_dd" :style="selectTabIndex == index? [selStyle]:[tabNormaleStyle]"
					  :class="{'tabActive':selectTabIndex == index}" :key="index"
					  @tap="typeChange(index)">
					<text>{{item.name}}</text>
				</view>
			</template>
		</view> 
		
		<view class="collect_box" :style="{'padding-top': (navBarHeight-8)+'px'}">
			<view class="rank_class">
				<view class="" style='display: flex;justify-content: space-between;align-items: center;'
					v-for="(ritem,index) in  rankList">
					<view class="rank_name" @click='getRank(ritem,index)'>
						<view class="">
							{{ritem.name}}
						</view>
						<view class="" v-if="ritem.select">
							<view class="r_img" v-if="ritem.issel">
								<image class="rimage" src="@/static/user/sel_top_black_jiantou.png" mode=""></image>
								<image class="rimage" src="@/static/user/next_jiantou.png" mode=""></image>
							</view>
							<view class="r_img" v-else>
								<image class="rimage" src="@/static/user/top_jaintou.png" mode=""></image>
								<image class="rimage" src="@/static/user/sel_next_black_jiantou.png" mode=""></image>
							</view>
						</view>
						<view class="r_img" v-else>
							<image class="rimage" src="@/static/user/top_jaintou.png" mode=""></image>
							<image class="rimage" src="@/static/user/next_jiantou.png" mode=""></image>
						</view>
					</view>
				</view>
			</view>

			<view class="" style="display: flex;align-items: center;" v-for="item, index in nums_list" :key="index">
				<view class="" v-if='ifShowBatch'>
					<view class="sell" v-if="item.isNorm==1 &&  item.status==0">
						<u-checkbox-group shape="circle" @change="checkboxGroupChange">
							<u-checkbox :active-color="ktopicAdaptationColors" @change="checkboxChange"
								:disabled="false" v-model="item.checkbox" :name="index">
								<!-- item.tokenId -->
							</u-checkbox>
						</u-checkbox-group>
					</view>
					<view class="sell" v-if="item.isNorm!=1 || item.status==1">
						<u-checkbox-group shape="circle">
							<u-checkbox :active-color="ktopicAdaptationColors" :disabled="true" v-model="item.checkbox"
								:name="item.tokenId"></u-checkbox>
						</u-checkbox-group>
					</view>
				</view>
				<view class="collect_list" @touchstart="handleTouchStart" @touchend="handleTouchEnd"
					@touchcancel="handleTouchCancel">
					<view class="collect_item" :style="{background:kcellBgColor}"
						@tap="go_detail(item)">
						<view class="" style="display: flex;align-items: center;">
							<!-- 	<view class="">
								<image :src="item.item.image" class="collect_image" mode="aspectFit"></image>
							</view> -->
							<!-- style="margin-left: 14rpx;" -->
							<view class="right-view">
								<view class="collect_price" :style="{'color':knormalColor}">编号：#{{item.tokenId}}</view>
								<view v-if="item.isMfh" class="collect_code">
									购入时间:{{inputDate(item.unfrozeDate)|filterTime}}</view>
								<view v-if="!item.isMfh" class="collect_code"> 购入时间:{{item.getTime|filterTime}}</view>
								<block v-if="!(item.type==1 || item.type==9 || item.type==10 || item.type==12 || item.type==13 || item.type==14 || item.type==15)">
									<block v-if="item.normPrice >0">
										<view class="collect_code">
											购入价格:{{item.normPrice |fp}}
										</view>
									</block>
									<block v-else>
										<view class="collect_code">
											购入价格:{{item.price |fp}}
										</view>
									</block>
								</block>
								<!-- 空投、转赠、新用户注册赠送、抽奖所得 -->
								<block v-if="item.type==1 && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										空投赠送
									</view>
								</block>
								<block v-if="item.type==9  && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										合成/分解获得
									</view>
								</block>
								<block v-if="item.type==10 && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										转赠获得
									</view>
								</block>
								<block v-if="item.type==12 && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										转仓获得
									</view>
								</block>
								<block v-if="item.type==13 && item.normPrice==0">
									<view class="collect_code" :style="{'color':kselectColorSize}">
										{{item.mfhDate}}
									</view>
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										购买啤酒赠送
									</view>
								</block>
								<block v-if="item.type==14 && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										新用户注册获得
									</view>
								</block>
								<block v-if="item.type==15 && item.normPrice==0">
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										线下免费喝获得
									</view>
								</block>

								<!-- <block v-if="item.isMfh">
									<view class="collect_code" :style="{'color':kselectColorSize}">
										{{unfrozeDate(item)}}
									</view>
									<view class="tag-text" :class="ktheme == 'black' ? 'tag-black':'tag-purple'">
										购买啤酒赠送
									</view>
								</block>
								 -->

								<!-- <view class=""
									style="width: 100%;display: flex;height: 50rpx;justify-content: space-around;">
									<view class="collect_price">
										￥{{item.price|fp}}
									</view>
								</view> -->
							</view>
							<view class="answer" @click.stop="pushIssue()">
								<image src="@/static/user/wenhao.png"></image>
							</view>
						</view>
						<block v-if="item.isOpen">
							<view v-if="!item.item.isSale" class="status" style="background:#a8a8a8">
								未开放
							</view>
							<view v-else>
								<view v-if="item.status===1" class="status" :style="{'background': ktopicAdaptationColors,'color':ktheme == 'black' ? 'black':'#ffffff'}">
									转售中
								</view>
								<view v-if="item.status===0 && item.isNorm == 1" class="status" :style="{'background': ktopicAdaptationColors,'color':ktheme == 'black' ? 'black':'#ffffff'}">
									可寄售
								</view>
								<view v-if="item.status===0 && item.isNorm != 1" class="status" style="background:#a8a8a8">
									不可寄售
								</view>
							</view>
						</block>
						<block v-else>
							<view class="status" style="background:#a8a8a8">
								关市中
							</view>
						</block>
					</view>
				</view>
			</view>
			<view class="" style="height: 230rpx" v-if='ifShowBatch'></view>
		</view>
		<view class="batch" v-if='ifShowBatch' :style="{color:knormalColor,background:knavgroundColor}">
			<u-checkbox :active-color="ktopicAdaptationColors" :value="tabchecked" shape="circle"
				@change="clearAllCheckboxes">
				<view :style="{color:knormalColor,background:knavgroundColor}">全选本页</view>
			</u-checkbox>
			<view class="" style="color: #C6C6C6;font-size: 24rpx;margin-left: 30rpx;">
				已选{{selNum}}个
			</view>
			<view class="" style="height:100rpx;margin: 0 auto;">
				<view class="btntk" @tap="batchSell" :style="{background:kbuttonBgColor}">
					批量寄售
				</view>
			</view>
		</view>
		<view class="none_box" style="text-align: center;" v-if="nums_list.length == 0 && !isLoading">
			<image  src="@/static/without.png" mode="widthFix"></image>
		</view>
		<uni-popup ref="bindingDialog" type="center" :maskBackgroundColor="'rgba(0,0,0,0.5)'" :isMaskClick="false">
			<view class="store-view store-border-all tips-padding"
				:style="{'background':kbackgroundColor,color:knormalColor}"
				:class="[{'alert-border-black alert-border-shadow-black':ktheme =='black'},{'alert-border-purple':ktheme =='purple'}]">
				<text class="popup-title">提示</text>
				<text class="popup-subtitle">{{tiMesee}}</text>
				<view class="tips-bottom">
					<view class="tips-button"
						:class="[{'tips-cancel-bg-black':ktheme =='black'},{'tips-cancel-bg-white':ktheme =='purple'}]"
						@click="bindingClose()">取消购买</view>
					<view class="tips-button" :style="{background:kbuttonBgColor}" @click="bindingCheck()">去开通
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	//获取系统状态栏高度
	var statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
	export default {
		filters: {
			filterTime(val) {
				return uni.$u.timeFormat(parseInt(val), 'yyyy-mm-dd hh:MM:ss')
			}
		},
		data() {
			return {
				tiMesee:"",
				navBarHeight: (statusBarHeight+44),
				timer: null, // 用于存储定时器的变量  
				longPressThreshold: 500, // 长按阈值，单位毫秒 
				isSale: "", //看是否可以寄售 ...
				ifShowBatch: false,
				rankList: [{
					id: 0,
					name: '按收藏时间排序',
					select: true,
					issel: true
				}, {
					id: 1,
					name: '按购买价格排序',
					select: false,
					issel: false
				}, {
					id: 2,
					name: '按编号排序',
					select: false,
					issel: false
				}],
				selectData: [],
				selNum: 0,
				tabchecked: false,
				page: 1,
				limit: 30,
				ifsell: true,
				hasNextPage: true,
				nums_page: 1,
				nums_limit: 10,
				nums_hasNextPage: true,
				nums_list: [],
				nums_count: 0,
				current_id: 0,
				nums_name: '',
				isLoading: true,
				selData: [],
				selNfidData: [],
				timeorder: 0, //time0rder=0://时间排序(前端可以升序可降序)
				price: "", //价格排序(前端可以升序可降序)
				number: "", //编号排序(前端可以升序可降序)
				selnum: 0,
				highPrice: "",
				lowPrice: "",
				startSaleTime: "", //公售时间
				endSaleTime: "", //结束时间
				isopen: false,
				allCheckThreshold: 0,
				addList:[],
				selectTabIndex: 0,
				walletStatus:"",
				typeList: [{
					id: 1,
					name: '可寄售'
				}, {
					id: 2,
					name: '不可寄售'
				}, ],
			}
		},
		onLoad(option) {
			this.current_id = option.iid
			this.nums_name = option.nums_name
			this.nums_count = option.nums_count
		},
		onShow() {
			this.page = 1;
			this.hasNextPage = true;
			this.get_data_list();
			this.tabchecked = false;
			this.selNum = 0
			this.addList=[]
		},
		onPullDownRefresh() {
			this.page = 1;
			this.hasNextPage = true;
			this.get_data_list()
			setTimeout(() => {
				uni.stopPullDownRefresh()
			}, 1000)
		},
		onReachBottom() {
			if (this.hasNextPage && !this.isLoading) {
				this.page += 1;
				this.get_data_list()
			}
		},
		methods: {
			getWalletStatus() {
				this.$api.userInfo({}, res => {
					if (res.status && res.data.walletStatus) {
						this.walletStatus = res.data.walletStatus;
						// uni.setStorage('walletStatue', res.data.walletStatus)
					}
				})
			},
			bindingClose() {
				this.$refs.bindingDialog.close()
			},
			bindingCheck() {
				this.$refs.bindingDialog.close()
				uni.navigateTo({
					url: '/pages/user/wallet/wallet-list'
				})
			},
			typeChange(index) {
				this.selectTabIndex = index;
				this.ifShowBatch = false
				this.page = 1
				this.get_data_list()
			},
			handleTouchStart() {
				// 清除之前的定时器（如果有的话）  
				clearTimeout(this.timer);

				// 设置定时器，等待长按阈值后触发长按事件  
				this.timer = setTimeout(() => {
					this.handleLongPress();
				}, this.longPressThreshold);
			},
			handleTouchEnd() {
				// 清除定时器，因为用户没有长按  
				clearTimeout(this.timer);
			},
			handleTouchCancel() {
				// 同样清除定时器，因为触摸被取消了  
				clearTimeout(this.timer);
			},
			handleLongPress() {
				// 在这里处理长按事件  
				if (this.isSale == 1 && this.selectTabIndex == 0) {
					console.log('Long press detected!');
					this.ifShowBatch = true
				}
			},
			getRank(val, index) {
				if (this.selnum != index) {
					this.rankList.forEach(item => {
						item.select = false;
						this.selnum = index
						this.rankList[index].issel = false
					});
					this.rankList[index].select = !this.rankList[index].select
				}
				this.rankList[index].issel = !this.rankList[index].issel;
				if (index == 0) {
					this.timeorder = this.rankList[index].issel ? 0 : 1;
					this.price = ''
					this.number = ''
				}
				if (index == 1) {
					this.price = this.rankList[index].issel ? 0 : 1;
					this.timeorder = ''
					this.number = ''
				}
				if (index == 2) {
					this.timeorder = ''
					this.price = ''
					this.number = this.rankList[index].issel ? 0 : 1;
				}
				this.get_data_list()
			},
			clickright() {
				this.ifShowBatch = !this.ifShowBatch
			},
			inputDate(date) {
				const sixteenDaysInMs = 16 * 24 * 60 * 60 *
					1000; // 1 day = 24 hours * 60 minutes * 60 seconds * 1000 milliseconds
				const now = new Date();
				const sixteenDaysAgo = date - sixteenDaysInMs;
				return sixteenDaysAgo;
			},
			filterTime(val) {
				return uni.$u.timeFormat(parseInt(val), 'yyyy-mm-dd')
			},
			get_data_list() {
				this.tabchecked = false
				this.isLoading = true
				let data = {
					pageNo: this.page,
					pageSize: 50,
					limit: this.limit,
					iid: this.current_id,
					timeOrder: this.timeorder,
					price: this.price,
					number: this.number,
				}
				this.$api.getMyGoodsListById(data, res => {
					this.isLoading = false
					if(!this.walletStatus){
						this.getWalletStatus()
					}
					if (res.status) {
						let list = res.data;
					
						//可寄售数量
						 let data = []
						 list.forEach(item => {
							 // 判断免费喝是否解冻
							 if(item.isMfh){
								 item.mfhDate = ''
								 // 将日期设置为后一天的0点0分0秒0毫秒
								 const now = new Date();
								 now.setHours(0, 0, 0, 0);
								 now.setDate(now.getDate() + 1);
								 let beforeTimes = Math.floor(now);
								 let nextDayTimestamp = Math.floor(item.unfrozeDate) + Math.floor(24 * 60 * 60 * 1000); // 一天的毫秒数
								 let remainingSeconds = nextDayTimestamp - beforeTimes;
								 let day = Math.floor(remainingSeconds / (24 * 3600 * 1000))
								 if (day > 0) {
									 // item.isNorm = 0
									 item.mfhDate = '剩余冻结时间:' + day + '天'
								 } else {
									 // item.isNorm = 1
									 item.mfhDate = '解冻时间：' + this.filterTime(nextDayTimestamp)
								 }
							 }
							 
							 if(this.selectTabIndex == 0){
								 if (item.isNorm == 1 && item.status == 0) {
								 	data.push(item)
								 	this.addList.push(item.nftId)
								 	this.allCheckThreshold =this.addList.length
								 }
							 }else{
								 if (!(item.isNorm == 1 && item.status == 0)) {
								 	data.push(item)
								 }
							 }
							 	console.log("--",data);
						})
						if (this.page == 1) {
							this.nums_list = data
							this.lowPrice = res.data[0].item.lowPrice / 100
							this.highPrice = res.data[0].item.highPrice / 100
							this.startSaleTime = res.data[0].item.startSaleTime
							this.endSaleTime = res.data[0].item.endSaleTime
							this.isopen = res.data[0].isOpen
							this.hasNextPage = res.data.length >= this.nums_limit;
						} else {
							this.nums_list = this.nums_list.concat(data);
							this.hasNextPage = res.data.length >= this.nums_limit;
						}
						res.data.forEach(res => {
							if (res.isNorm == 1) {
								this.isSale = 1
								return
							}
						})
					}
				})
			},
			go_detail(item) {
				uni.navigateTo({
					url: `/pages/collection/collection_details?id=${item.nftId}&isnorm=${item.isNorm}&normPrice=${item.normPrice}`
				})
			},
			batchSell() {
				if (!this.isopen) {
					this.$common.errorToShow('关市中,开市后再进行出售');
				}else  if (this.walletStatus.xtStatus ==0) {
						this.tiMesee = '您未开通系统钱包,请开通后购买'
						this.$refs.bindingDialog.open()
				}else if (this.walletStatus.hfStatus ==0 && this.walletStatus.sdStatus ==0) {
						this.tiMesee = '您未开通汇付/杉德钱包,请开通后购买'
						this.$refs.bindingDialog.open()
				}  else if (this.selectData.length == 0) {
					this.$common.errorToShow('请选择寄售数品');
				} else {
					uni.navigateTo({
						url: 'collection_batchSell?name=' + this.nums_name + '&type=2' + this.selData +
							"&selectData=" + this.selectData + '&selNfidData=' + this.selNfidData + '&highPrice=' +
							this.highPrice + '&lowPrice=' + this.lowPrice
					})
				}
			},
			pushIssue() {
				uni.navigateTo({
					url: '/pages/user/issue/issue'
				})
			},
			// 选中某个复选框时，由checkbox时触发
			checkboxChange(e) {
				const {
					value,
					name
				} = e //name 数组下标，获取nftid跟编号
				var tokenIdList = this.nums_list[name].tokenId
				var nftidsList = this.nums_list[name].nftId
				const index = this.selectData.indexOf(tokenIdList);

				if (index !== -1) {
					this.selNfidData.splice(index, 1);
					this.selectData.splice(index, 1);
				} else {
					this.selNfidData.push(nftidsList);
					this.selectData.push(tokenIdList);
				}
				this.selNum = this.selectData.length;
				//全部勾选后
				console.log("this.allCheckThreshold--",this.allCheckThreshold);
				console.log("this.selNum--",this.selNum);
				if (this.allCheckThreshold == this.selNum) {
					this.tabchecked = true
				} else if (this.allCheckThreshold != this.selNum) {
					this.tabchecked = false
				}
			},
			// 选中任一checkbox时，由checkbox-group触发
			checkboxGroupChange(e) {

			},
			//全选本页
			clearAllCheckboxes(e) {
				this.selectData = []
				this.selNfidData = []
				const {
					value,
					name
				} = e
				if (value) {
					this.nums_list.forEach(item => {
						//checked
						if (item.status == 0 && item.isNorm == 1) {
							this.selNfidData.push(item.nftId);
							this.selectData.push(item.tokenId);
						}
					});
					if (this.selectData.length == 0) {
						this.$common.errorToShow('暂无可寄售数品');
						this.tabchecked = false
					}
				} else {
					this.selectData = []
					this.selNfidData = []
				}
				// this.tableData.filter(item => item.checked).length;
				this.selNum = this.selectData.length;
				this.tabchecked = e.value
				this.nums_list.forEach(item => {
					//checked
					this.$set(item, 'checkbox', this.tabchecked);
				});

			},

		}
	}
</script>

<style lang="scss">
	.collect_box {
		width: 100%;
		// border-radius: 10rpx 10rpx 0rpx 0rpx;
		min-height: 340rpx;
		padding: 0 30rpx 62rpx 30rpx;

		.collect_list {
			width: 100%;
			// min-height: 155rpx;
			// max-height: 800rpx;
			overflow: auto;
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			margin-top: 20rpx;
			justify-content: space-between;
			padding-right: 8rpx;

			.cyz {
				background-color: var(--QianmenonlyBackgournd);
			}

			.zsz {
				background-color: var(--QianmenonlyBackgournd2);
			}

			.collect_item {
				width: 100%;
				border-radius: 20rpx;
				position: relative;
				padding: 15rpx;
				margin-bottom: 10rpx;

				.collect_image {
					width: 110rpx;
					height: 110rpx;
					border-radius: 20rpx;
				}

				.status {
					display: inline-block;
					padding: 2rpx 10rpx 2rpx 19rpx;
					background: #9780ff;
					border-radius: 0 20rpx 0 20rpx;
					font-size: 20rpx;
					color: #ffffff;
					position: absolute;
					top: 0;
					right: 0;
				}

				.answer {
					margin-left: auto;
					padding: 10rpx;
					width: 100rpx;
					height: 100rpx;
					image {
						margin-top: 30rpx;
						margin-left: 20rpx;
						width: 50%;
						height: 50%;
					}
				}

				.jishoustatus {
					display: inline-block;
					padding: 2rpx 8rpx 2rpx 14rpx;

					border-radius: 20rpx;
					font-size: 18rpx;
					color: #ffffff;
					position: absolute;
					bottom: 6rpx;
					right: 0;
				}

				.right-view {
					display: flex;
					flex-direction: column;
					margin-left: 20rpx;

					.collect_code {
						margin-top: 10rpx;
						font-size: 20rpx;
						color: #7A7A7A;
					}

					.collect_price {
						margin-top: 10rpx;
						width: 100%;
						font-size: 32rpx;
						color: #141519;
					}

					.tag-text {
						margin-top: 10rpx;
						margin-bottom: 10rpx;
						margin-right: auto;
						display: inline-block;
						padding: 6rpx 15rpx;
						border-radius: 5rpx;
						font-size: 22rpx;
						border-radius: 20rpx;
					}

					.tag-black {
						color: #FFFFFF;
						background: #202020;
						border: 2rpx #F6D9A9 solid
					}

					.tag-purple {
						color: #BD89F7;
						background: rgba(234, 225, 255, 0.5);
						border: 2rpx #BD89F7 solid
					}
				}
			}

		}

		// .collect_list::after {
		// 	width: 216rpx;
		// 	content: '';
		// }

		.tips {
			padding-top: 10rpx;
			font-size: 24rpx;
			color: #ABA9B4;
		}

		.collect_name {
			display: flex;
			align-items: center;
			font-size: 36rpx;
			font-weight: bold;
			color: #141519;

			.collect_num {
				padding-left: 10rpx;
				font-size: 24rpx;
				color: #ABA9B4;
			}
		}

	}

	.go_mart {
		position: fixed;
		bottom: 30rpx;
		width: 690rpx;
		margin: 0 30rpx;
		height: 101rpx;

	}

	.btntk {
		width: 282rpx;
		height: 80rpx;
		margin: 10rpx auto;
		border-radius: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		color: black;
		font-weight: 400;
	}

	.batch {
		height: 235rpx;
		position: fixed;
		bottom: 0;
		width: 100%;
		padding: 20rpx 30rpx 62rpx 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.rank_class {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: white;
		font-weight: 400;
		font-size: 26rpx;
		margin: 20rpx auto;
	}

	.rank_name {
		display: flex;
		align-items: center;
		justify-content: space-around;
		padding: 16rpx 20rpx;
		height: 60rpx;
		background: #202020;
		border-radius: 29rpx;

		.r_img {
			.rimage {
				margin: 6rpx 3rpx;
				width: 18rpx;
				height: 10rpx;
				display: block;

			}
		}

	}
	
	.tab_box {
		position: fixed;
		width: 100%;
		// padding: 30rpx 70rpx 0;
		display: flex;
		align-items: center;
		// justify-content: space-between;
		justify-content: space-around;
		z-index: 999;
		height: 88rpx;
		.tab_dd {
			font-size: 30rpx;
			color: var(--tabNormalColor);
			position: relative;
		}
	
		.tabActive {
			color: var(--selectColorSize);
		}
	
		.tabActive::after {
			display: block;
			clear: both;
			content: '';
			width: 98%;
			height: 4rpx;
			// background:red;
			background: var(--selBcakborder);
			border-radius: 100rpx;
			position: absolute;
			left: 50%;
			bottom: -12rpx;
			transform: translateX(-50%);
		}
	}
</style>